#pragma once

#include <functional>

#include "point.h"

namespace std {

template <> struct hash<pathfind::IntPoint> {
  std::size_t operator()(const pathfind::IntPoint &p) const {
    using std::hash;
    using std::size_t;

    return (hash<int>()(p.x) ^ (hash<int>()(p.y) << 1));
  }
};
}
